﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameCore;
using GameObject;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;


namespace ResourceManager
{
    public class VisbleGameEntityManager: EntityManager
    {
        int iDx = -1;

        public int IDx
        {
            get { return iDx; }
            set { iDx = value; }
        }
        public virtual void SetID(VisibleGameEntity G_object)
        {
            G_object.SetID(IDManager.getID(IDx, G_object));
            IDx = G_object.Object_iD.X;
        }

        public override VisibleGameObject CreateObject(int id)
        {
            VisibleGameObject newObj = base.CreateObject(id);

            SetID((VisibleGameEntity)newObj);

            return newObj;
        }
        
    }
}
